/*******************************************************************************
 * Copyright (c) 2006 CEA List.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     CEA List - initial API and implementation
 *******************************************************************************/
package com.cea.papyrus.core.commands;

import org.eclipse.emf.ecore.EObject;
import org.eclipse.gef.commands.Command;

/**
 * 
 * 
 * @author Remi Schnekenburger
 */
public class SetValueCommand extends Command {
	
	/**
	 * 
	 */
	public EObject object;
	
	/**
	 * Creates a new command that modifies an emf element.
	 * 
	 * @param newValue the new value
	 * @param object the object to modify
	 */
	public SetValueCommand(EObject object, Object newValue) {
		this.object = object;
	}
	
	/* (non-Javadoc)
	 * @see org.eclipse.gef.commands.Command#canExecute()
	 */
	/**
	 * 
	 * 
	 * @return 
	 */
	@Override
	public boolean canExecute() {
		return (this.object != null);
	}
}
